package com.yuneec.droneservice.connection;

/**
 * Created by lk.sun on 3/4/2016.
 * Report read from connection data.
 */
public interface DataReceivedListener {
    /**
     * Called when some data arrived.
     *
     * @param data   The data buffer of read from connection.
     * @param offset The offset of data.
     * @param length The length of received.
     */
    public void onReceive(byte[] data, int offset, int length);
}
